package com.jrx.anytxn.customer.dto.creditinfo;

import com.jrx.anytxn.common.constant.RegexConstant;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * 额度树查询
 * @author Qingyao Xing
 * @date 2019/8/7 17:35
 */
public class CreditAllInfoQueryReq implements Serializable {
    private static final long serialVersionUID = 1841424453090383930L;
    /**
     * 交易流水号
     */
    @NotBlank(message = "客户额度树查询中流水号不能为空")
    @Pattern(regexp = RegexConstant.ALL_CHARSET_AND_NUMBER, message = "流水号只能是英文字母和数字组成")
    @Size(max=32, message = "交易流水号必须小于32位")
    @ApiModelProperty(value="交易流水号",example="CQ3692",required=true)
    private String 	seqNo;
    /**
     * 租户id
     */
    @NotBlank(message = "客户额度树查询中租户id不能为空")
    @Size(max=4, message = "租户id必须小于4位")
    @ApiModelProperty(value="租户id",example="C692",required=true)
    private String 	tenantId;
    /**
     * 证件类型
     */
    @ApiModelProperty(value="证件类型",example="101")
    @Size(max = 3,message = "idType长度不能大于3位字符")
    private String 	idType;
    /**
     * 证件号码
     */
    @ApiModelProperty(value="证件号码",example="371481199009273645")
    @Size(max = 20,message = "customerId长度不能大于16位字符")
    private String 	idNumber;
    /**
     * 客户id
     */
    @ApiModelProperty(value="客户id",example="3")
    @Size(max = 16,message = "customerId长度不能大于16位字符")
    private String 	customerId;
    /**
     * 用户编号
     */

    @ApiModelProperty(value="姓名",example="授信额度树查询测试")
    @Size(max = 60,message = "chineseName长度不能大于60位字符")
    private String 	chineseName;
    /**
     * 用户编号
     */
    @NotBlank(message = "客户额度树查询中机构号不能为空")
    @ApiModelProperty(value="机构号",example="0005",required=true)
    @Size(max = 4,message = "organizationId长度不能大于4位字符")
    private String 	organizationId;

    public String getSeqNo() {
        return seqNo;
    }

    public void setSeqNo(String seqNo) {
        this.seqNo = seqNo;
    }

    public String getIdType() {
        return idType;
    }

    public void setIdType(String idType) {
        this.idType = idType;
    }

    public String getIdNumber() {
        return idNumber;
    }

    public void setIdNumber(String idNumber) {
        this.idNumber = idNumber;
    }

    public String getCustomerId() {
        return customerId;
    }

    public void setCustomerId(String customerId) {
        this.customerId = customerId;
    }

    public String getChineseName() {
        return chineseName;
    }

    public void setChineseName(String chineseName) {
        this.chineseName = chineseName;
    }

    public String getOrganizationId() {
        return organizationId;
    }

    public void setOrganizationId(String organizationId) {
        this.organizationId = organizationId;
    }

    public String getTenantId() {
        return tenantId;
    }

    public void setTenantId(String tenantId) {
        this.tenantId = tenantId;
    }

    @Override
    public String toString() {
        return "CreditAllInfoQueryReq{" +
                "seqNo='" + seqNo + '\'' +
                ", tenantId='" + tenantId + '\'' +
                ", idType='" + idType + '\'' +
                ", idNumber='" + idNumber + '\'' +
                ", customerId='" + customerId + '\'' +
                ", chineseName='" + chineseName + '\'' +
                ", organizationId='" + organizationId + '\'' +
                '}';
    }
}
